#include "AbsUI/PackageView.hpp"
#include "Ctrl/PackageController.hpp"
#include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp>

namespace AbsUI
{
	

PackageView::PackageView( Ctrl::PackageController& rPackCtrler )
	: rPackageController_( rPackCtrler)
{
	using namespace boost::lambda;
	rPackageController_.subscribeToNewPackageAdded( bind( &PackageView::addNewPackageSlot, this, _1, _2));
	rPackageController_.subscribeToPackageRemoved( bind( &PackageView::removePackageSlot, this, _1, _2));
	rPackageController_.subscribeToRootRequirementAdded( bind( &PackageView::addRootRequirementSlot, this, _1, _2));
	rPackageController_.subscribeToRootRequirementRemoved( bind( &PackageView::removeRootRequirementSlot, this, _1, _2));
}


} // namespace AbsUI